#pragma once

#include <stdint.h>
#include <string>
namespace myrpc::base
{

  class Nodeformat
  {
  public:
    Nodeformat() = delete;
    ~Nodeformat() = delete;
    static std::string &Get_node_type(uint32_t type)
    {
      return type <= node_type_size_ ? node_type_[type] : node_type_[0];
    };
    static bool Node_type_is_available(uint32_t type)
    {
      return type <= node_type_size_;
    };
    static std::string node_type_[];
    static const uint32_t node_type_size_;
  };

} // namespace myrpc::base